home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / dskut / coldwarm.zip / COLDWARM.DOC < prev    next >
Text File  |  1991-11-22  |  1KB  |  33 lines

  1. COLDWARM.COM returns ERRORLEVEL of 0 if the machine was cold-booted
  2. or 1 if it was warm-booted.  A batch file can then be used to take
  3. different actions accordingly.  Here is an example: (Remember that
  4. under straight DOS, errorlevel comparison is >=, not just =.)
  5.  
  6.     @echo off
  7.     coldwarm
  8.     if errorlevel 1 goto warm
  9.     echo cold
  10.     goto end
  11.     :warm
  12.     echo warm
  13.     :end
  14.  
  15. When the computer is cold-booted, the memory test initializes memory
  16. locations to be 0.  When you press CTRL-ALT-DEL to warm-boot the
  17. machine, a number is written to the RESET WORD location (see assembly
  18. code) first so that memory test can be bypassed.  That number is
  19. different from machine to machine, depending on the BIOS, so I am only
  20. checking if the 16-bit RESET WORD is 0.  Actually, I wrote this because
  21. another program failed to work on my computer.
  22.  
  23. Thanks to the people who provided me with information on the RESET WORD.
  24. Feel free to do whatever you want with this program.  If you would
  25. like to send me donations, I can be contacted at the following email
  26. addresses.
  27.  
  28. Chia-Chi Chao    11/22/91
  29.  
  30. Internet: chao@cs.ucla.edu
  31. Usenet:   ..!(uunet,ucbvax)!cs.ucla.edu!chao
  32. GEnie:    C.CHAO4
  33.